package com.ctcemti.mdm.project.sys.dao;

import com.ctcemti.mdm.project.sys.entity.InfDictItem;
import org.apache.ibatis.annotations.Mapper;
import tk.mybatis.mapper.common.IdsMapper;

import java.util.List;
import java.util.Map;

/**
 * @ClassName InfDictItemMapper
 * @Description 数据字典项表接口
 * @Author bxf
 * @Date 11:18 2019/7/12
 * @Version V1.0
 **/
@Mapper
public interface InfDictItemMapper extends tk.mybatis.mapper.common.Mapper<InfDictItem>,IdsMapper<InfDictItem> {

    /**
     * @Author bxf
     * @Description 更新数据字典项
     * @Date 8:24 2019/7/18
     * @Param 
     * @return 
     **/
    int updateByIdSelective(InfDictItem infDictItem);
    /**
     * @Author bxf
     * @Description 根据pid获取map
     * @Date 11:39 2019/7/18
     * @Param 
     * @return 
     **/
    List<Map<String,Object>> selectMapByPid(String pid);
    /**
     * @Author bxf
     * @Description 根据pid级联删除子项
     * @Date 9:38 2019/7/19
     * @Param
     * @return
     **/
    public int deleteByPid(String pid[]);
    /**
     * @Author bxf
     * @Description 根据分类表id删除详细项
     * @Date 9:38 2019/7/19
     * @Param
     * @return
     **/
    int deleteByInfDictSortId(String ids[]);
    /* *
     * @Author bxf
     * @Description 根据字典编码查询字典详情
     * @Date 19:29 2019/8/8
     * @param code
     * @return java.util.List<com.ctcemti.mdm.project.sys.entity.InfDictItem>
     */
    List<InfDictItem> selectInfdictitemByInfdictsortCode(String code);
}